package jssia.database;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import jssia.database.mysql.constants.Collation;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ColumnInfo {

    Collation collation() default Collation.UTF8_GENERAL_CI;
    boolean nullable() default true;
    boolean autoIncrement() default false;
    String defaultValue() default "";
    IndexInfo index() default @IndexInfo(name = "", columns = {});
}
